package com.sunny.springboot2.event;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 自定义事件配置类
 *
 * @author Sunny
 * @date 2019/10/14 上午10:18
 */
@Configuration
public class CustomEventConfigration {

    @Bean
    public CustomEventHandler customEventHandler() {
        return new CustomEventHandler();
    }

    @Bean
    public CustomEventPublisher customEventPublisher() {
        return new CustomEventPublisher();
    }
}
